package com.dragon.speech.common.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;
import org.springframework.web.context.ServletContextAware;

import javax.servlet.ServletContext;

/**
 * Created by jinlong.hao on 16/7/15.
 */
@Service
public class SystemInit implements InitializingBean, ServletContextAware {

    public static final Logger logger = LoggerFactory.getLogger(SystemInit.class);

    @Override
    public void afterPropertiesSet() throws Exception {
    }

    @Override
    public void setServletContext(ServletContext servletContext) {
        logger.info("Executing system initialization");
        logger.info("Completed system initialization");
    }
}
